import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '电影海报实例',
      home: Scaffold(
        appBar: AppBar(
          title: Text('电影海报实例'),
        ),
        body: GridView.count(
          padding: const EdgeInsets.all(10),
          crossAxisCount: 3,
          crossAxisSpacing: 2,
          mainAxisSpacing: 2,
          childAspectRatio: 0.7,
          children: <Widget>[
           Image.network('https://yingshi-stream.2345cdn.net/dypcimg/img/f/71/sup213842.jpg', fit: BoxFit.cover),
           Image.network('https://yingshi-stream.2345cdn.net/dypcimg/img/5/71/sup213902.jpg', fit: BoxFit.cover),
           Image.network('https://yingshi-stream.2345cdn.net/dypcimg/img/8/70/sup212446.jpg', fit: BoxFit.cover),
           Image.network('https://yingshi-stream.2345cdn.net/dypcimg/img/3/71/s213226.jpg', fit: BoxFit.cover),
           Image.network('https://yingshi-stream.2345cdn.net/dypcimg/img/c/57/s171868.jpg', fit: BoxFit.cover),
           Image.network('https://yingshi-stream.2345cdn.net/dypcimg/img/1/70/sup212393.jpg', fit: BoxFit.cover),
           Image.network('https://yingshi-stream.2345cdn.net/dypcimg/img/a/71/sup213142.jpg', fit: BoxFit.cover),
           Image.network('https://yingshi-stream.2345cdn.net/dypcimg/img/9/53/sup161557.jpg', fit: BoxFit.cover),
           Image.network('https://yingshi-stream.2345cdn.net/dypcimg/img/2/64/sup192861.jpg', fit: BoxFit.cover),
           Image.network('https://yingshi-stream.2345cdn.net/dypcimg/img/3/58/sup174383.jpg', fit: BoxFit.cover),
           Image.network('https://yingshi-stream.2345cdn.net/dypcimg/img/2/34/sup103173.jpg', fit: BoxFit.cover),
           Image.network('https://yingshi-stream.2345cdn.net/dypcimg/img/c/44/sup134524.jpg', fit: BoxFit.cover),
          ],
        ),
      ),
    );
  }
}